#include <iostream>

using namespace std;

class Base{
public:
    virtual void func(int,long){
        cout << "base" << endl;
    }
};

class Sub:public Base{
public:
    virtual void func(int) override{
        cout << "sub" << endl;
    }
};

int main()
{
    Base* b = new Sub;
    b->func(1,2);
    return 0;
}
